package com.taotao.job.core.trigger;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;

import java.io.Serializable;

/**
 *
 * @author fanbeibei
 * @version 1.0
 * @date 2021/2/22 17:31
 */
@Builder
@AllArgsConstructor
@Getter
public class TriggerResult implements Serializable {

    public static final String RESULT_SUCCESS = "success";
    public static final String RESULT_FAIL = "fail";

    /**
     * 触发结果
     */
    private String code;
    private Long runInstanceId;
    private String msg;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
